#  Copyright  2009
#  @Author
#  Richard Changde Yin            e-mail yinchangde@hotmail.com
# 
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

LDADD= libserialize.la \
	${LIBPROTOBUF} \
	${LIBUUID} \
	${LIBINTL} \
	${top_builddir}/gnulib/libgnu.la

AM_CXXFLAGS += ${PROTOSKIP_WARNINGS}
#TESTS_ENVIRONMENT = BINDIR=${top_builddir}/drizzled/serialize sh
#TESTS = check_length.sh

noinst_PROGRAMS = 

check_PROGRAMS = length

noinst_LTLIBRARIES = libserialize.la

nodist_libserialize_la_SOURCES = \
		table.pb.cc

nodist_noinst_HEADERS= \
		table.pb.h

noinst_HEADERS= \
		serialize.h



EXTRA_DIST = table.proto
BUILT_SOURCES = \
		table.pb.h 


CLEANFILES =   \
		table.pb.h \
		table.pb.cc 


SUFFIXES = .proto .pb.cc .pb.h
.proto.pb.cc:
	$(PROTOC) --proto_path=.:${top_srcdir}/mainsrc/serialize \
		--cpp_out=${top_builddir}/mainsrc/serialize $<
.proto.pb.h:
	$(PROTOC) --proto_path=.:${top_srcdir}/mainsrc/serialize \
		--cpp_out=${top_builddir}/mainsrc/serialize $<
